﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IRepository.WareHouse
{
    /// <summary>
    /// 仓库调拨仓储层接口
    /// </summary>
    public interface IWareHouseAllocationRepository
    {
        /// <summary>
        /// 更新仓库调拨
        /// </summary>
        /// <param name="model">仓库调拨模型</param>
        /// <param name="list">仓库调拨 子项模型</param>
        /// <returns></returns>
        public Task<bool> UpdateAsync(WareHouseAllocation model, List<WareHouseAllocationItem> list);
        /// <summary>
        /// 新增仓库调拨
        /// </summary>
        /// <param name="model">仓库调拨模型</param>
        /// <param name="list">仓库调拨 子项模型</param>
        /// <returns></returns>
        public Task<bool> AddAsync(WareHouseAllocation model, List<WareHouseAllocationItem> list);
        /// <summary>
        /// 根据编号批量删除仓库调拨信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int[] Ids);
        /// <summary>
        /// 根据编号删除指定仓库调拨信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int Id);
    }
}
